CPLEX=cplex125
CPARCH=x86-64_sles10_4.1

CFLAGS+= -ansi -Wall -g
CFLAGS+= -I/usr/local/stow/${CPLEX}/lib/${CPLEX}/include
CFLAGS+= -I/usr/include/libxml2

LDFLAGS+= -L/usr/local/stow/${CPLEX}/lib/${CPLEX}/lib/${CPARCH}/static_pic -lilocplex -lcplex 
LDFLAGS+= -lm -lpthread -lgraph
LDFLAGS+= -lxml2

all: Cluster

clean:
	rm cluster_editing.o graph.o Cluster

Cluster: cluster_editing.o graph.o
	gcc -o Cluster cluster_editing.o graph.o $(CFLAGS) $(LDFLAGS)

cluster_editing.o: cluster_editing.h graph.h cluster_editing.c
	gcc -c cluster_editing.c $(CFLAGS)

graph.o: graph.h graph.c
	gcc -c graph.c $(CFLAGS)
